<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\lib\enum;

use ReflectionClass;

/**
 * 订单枚举
 * Class OrderStatusEnum
 * @package app\lib\enum
 */
class OrderStatusEnum
{
    // 待付款
    public const UNPAID = 0;
    // 已付款
    public const PAID = 2;
    // 已完成
    public const COMPLETED = 3;
    // 已取消
    public const CANCELLED = 4;

    /**
     * @Desc 获取所有常量
     * @return array
     */
    public static function getAllConstants()
    {
        $oClass = new ReflectionClass(__CLASS__);
        return $oClass->getConstants();
    }
}